<link href="/css/upload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/cartoon.js"></script>
<style type="text/css">
.left{height:auto;float:left;width:1000px}
.slw_c{height:auto; float:left;width:630px; margin-right:25px;}
.tupianlist{ width:139px;  float:left; margin:20px 0 0 15px; display:inline;}
.tupianlist dt a{ display:block; width:137px;  border:1px solid #e3e3e3;}
.tupianlist dt a:hover{ border:1px solid #9cc9d0;}
.tupianlist dt a img{ padding:3px;}
.tupianlist dd{ width:139px; height:30px; line-height:30px; text-align:left;}
.tupianlist dd a{ color:#00a9e0; font-weight:bold;}
.biaoti_a{height:20px; float:left; background-color:#f5f5f5; margin-top:5px;}
a.modity-classify {
    background: url("/images/rightsidebar.png") repeat scroll -205px top #FFFFFF;
    display: inline-block;
    height: 16px;
    overflow: hidden;
    width: 16px;
	paddint-left:30px;
}
a.modify-class{background-position: -205px -17px;}
a.del-class{ margin: 0 -2px 0 0;}
</style>
<div class="left">
<div class="slw_c">
    <h1 class="biaoti_a slw_c" ><span>图片列表</span><a href="#"></a></h1>
    <?php if($this->ret['data']):?>
    <?foreach($this->ret['data'] as $row):?>
    <dl class="tupianlist">
    	<dt><a href="#"><img src="<?=makeImgUrl($row['img_url'])?>"  onload="resizeImg(this,130,100);" /></a></dt>
      <dd>
      <span id="_img_<?=$row['id']?>"><a href="#" title="<?=$row['img_title']?>"><?=$row['img_title']?></a>
      <a class="modity-classify modify-class" href="javascript:void(0);" onclick="Cartoon.edit_img(<?=$row['id']?>)"></a><a href="javascript:void(0);" onclick="Cartoon.del_img(<?=$row['id']?>)" class="modity-classify del-class"></a></span>
      <span style="display:none;" id="_img_span_<?=$row['id']?>">
		名:<input type="text" style="height:12px; background:#FFFFFF;border:1px solid #666;color:#333333;font-size:12px;padding:3px;width:30px" size="8"  onkeydown="if(event.keyCode==13){alert(111);}" value="<?=$row['img_title']?>" id="img_title_<?=$row['id']?>" >
		序<input type="text" style="height:12px; background:#FFFFFF;border:1px solid #666;color:#333333;font-size:12px;padding:3px;width:10px" size="2"  onkeydown="if(event.keyCode==13){alert(111);}" value="<?=$row['img_order']?>"  id="img_order_<?=$row['id']?>"/>
		<input type="button" onclick="Cartoon.edit_img_info(<?=$row['id']?>)" value="改" />
	  </span>
      </dd>
    </dl>
    <?endforeach;?>    
    <?else:?>    
    <?php endif;?>
</div>
<div style="float:left;padding-left:30px">
    <?=$this->ret['pages']?>
</div>
<div style="float:left; margin-left:20px;width:300px">
<?php require_once 'upload.phtml';?>
</div>
</div>